const mongoose =require('mongoose')
mongoose.connect('mongodb://yang:1794644493@47.116.116.42:27017/admin')
var app=mongoose.connection

app.on('open',()=>{
    console.log("连接成功")
})

app.on('error',(err)=>{
    console.log("连接失败",err)
})

module.exports={
    mongoose
}